import request from './request'

// 新增厂商
export const manufacturerAdd = (dto) => {
  return request({
    url: '/manufacturer/add',
    method: 'post',
    data: dto,
    headers: {
      isToken: true,
      repeatSubmit: false
    }
  })
}

// 厂商列表
export const manufacturerList = (params) => {
  return request({
    url: '/manufacturer/list',
    method: 'get',
    param: params,
    headers: {
      isToken: true,
      repeatSubmit: false
    }
  })
}

// 修改厂商
export const manufacturerUpdate = (updateEarTag) => {
  return request({
    url: '/manufacturer/update',
    method: 'post',
    data: updateEarTag,
    headers: {
      isToken: true,
      repeatSubmit: false
    }
  })
}

// 所有厂商列表
export const manufacturerAllList = () => {
  return request({
    url: '/manufacturer/all',
    method: 'get',
    headers: {
      isToken: true,
      repeatSubmit: false
    }
  })
}
